import {
    movieRequest
} from '../../api'

import {
    GETMOVIELIST
} from '../constant/movieConst'

import store from '../store'

export const getMovieAction=()=>{
    return async()=>{
        const re= await movieRequest();
        console.log(re,'re');
        store.dispatch({
            type:GETMOVIELIST,
            data:re.data.data.list
        })
    }
}